// import 'package:flutter/cupertino.dart';
// import 'package:flutter/foundation.dart';
// import 'package:lib_core/lib_core.dart';
//
// /// Author: Shper
// /// Created: 2023-08-10
// mixin GTContainerLifecycleObserver {
//
//   static void addObserver(GTContainerLifecycleObserver observer) => GTContainerLifecycleBinding.instance._observers.add(observer);
//
//   static bool removeObserver(GTContainerLifecycleObserver observer) => GTContainerLifecycleBinding.instance._observers.remove(observer);
//
//   /// Android "onResume" or iOS "viewDidAppear"
//   void onContainerResumed() {
//     GTLogger.debug('$runtimeType onContainerResumed');
//   }
//
//   /// Android "onStop" or iOS "viewDidDisappear"
//   void onContainerStop() {
//     GTLogger.debug('$runtimeType onContainerStop');
//   }
// }
//
// class GTContainerLifecycleBinding {
//
//   /// 单例
//   static final GTContainerLifecycleBinding _instance = GTContainerLifecycleBinding._internal();
//
//   static GTContainerLifecycleBinding get instance => _instance;
//
//   /// 私有的命名构造函数
//   GTContainerLifecycleBinding._internal();
//
//   final List<GTContainerLifecycleObserver> _observers = <GTContainerLifecycleObserver>[];
//
//   void handleAppLifecycleStateChanged(AppLifecycleState state) {
//   }
//
// }
